import request from 'utils/request';
import { stringify } from 'qs';

export function getList(params) {
	return request(`/api/screenArticle/page?${stringify(params)}`);
}

export function upload(params) {
	return request('/upload', {
		body: params,
		method: 'POST',
	});
}

export function add(params) {
	return request('/api/screenArticle/add', {
		body: params,
		method: 'POST',
	});
}

export function detail(params) {
	return request(`/api/screenArticle/detail?${stringify(params)}`);
}

export function update(params) {
	return request('/api/screenArticle/update', {
		body: params,
		method: 'POST',
	});
}
export function del(params) {
	return request('/api/screenArticle/delete', {
		body: params,
		method: 'POST',
	});
}
